package com.example.tourapp.Pojo;

import java.util.List;

public class Pojo_City {

    /**
     * result : {"realtime":{"wid":"07","temperature":"18","direct":"西北风","aqi":"22","humidity":"96","power":"2级","info":"小雨"},"city":"长沙","future":[{"date":"2020-09-23","wid":{"night":"01","day":"07"},"temperature":"17/20℃","weather":"小雨转多云","direct":"北风"},{"date":"2020-09-24","wid":{"night":"07","day":"01"},"temperature":"18/25℃","weather":"多云转小雨","direct":"北风"},{"date":"2020-09-25","wid":{"night":"08","day":"07"},"temperature":"17/21℃","weather":"小雨转中雨","direct":"东北风"},{"date":"2020-09-26","wid":{"night":"07","day":"08"},"temperature":"17/20℃","weather":"中雨转小雨","direct":"东北风"},{"date":"2020-09-27","wid":{"night":"07","day":"07"},"temperature":"18/23℃","weather":"小雨","direct":"东北风"}]}
     * reason : 查询成功!
     * error_code : 0
     */
    private ResultEntity result;
    private String reason;
    private int error_code;

    public void setResult(ResultEntity result) {
        this.result = result;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public ResultEntity getResult() {
        return result;
    }

    public String getReason() {
        return reason;
    }

    public int getError_code() {
        return error_code;
    }

    public class ResultEntity {
        /**
         * realtime : {"wid":"07","temperature":"18","direct":"西北风","aqi":"22","humidity":"96","power":"2级","info":"小雨"}
         * city : 长沙
         * future : [{"date":"2020-09-23","wid":{"night":"01","day":"07"},"temperature":"17/20℃","weather":"小雨转多云","direct":"北风"},{"date":"2020-09-24","wid":{"night":"07","day":"01"},"temperature":"18/25℃","weather":"多云转小雨","direct":"北风"},{"date":"2020-09-25","wid":{"night":"08","day":"07"},"temperature":"17/21℃","weather":"小雨转中雨","direct":"东北风"},{"date":"2020-09-26","wid":{"night":"07","day":"08"},"temperature":"17/20℃","weather":"中雨转小雨","direct":"东北风"},{"date":"2020-09-27","wid":{"night":"07","day":"07"},"temperature":"18/23℃","weather":"小雨","direct":"东北风"}]
         */
        private RealtimeEntity realtime;
        private String city;
        private List<FutureEntity> future;

        public void setRealtime(RealtimeEntity realtime) {
            this.realtime = realtime;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public void setFuture(List<FutureEntity> future) {
            this.future = future;
        }

        public RealtimeEntity getRealtime() {
            return realtime;
        }

        public String getCity() {
            return city;
        }

        public List<FutureEntity> getFuture() {
            return future;
        }

        public class RealtimeEntity {
            /**
             * wid : 07
             * temperature : 18
             * direct : 西北风
             * aqi : 22
             * humidity : 96
             * power : 2级
             * info : 小雨
             */
            private String wid;
            private String temperature;
            private String direct;
            private String aqi;
            private String humidity;
            private String power;
            private String info;

            public void setWid(String wid) {
                this.wid = wid;
            }

            public void setTemperature(String temperature) {
                this.temperature = temperature;
            }

            public void setDirect(String direct) {
                this.direct = direct;
            }

            public void setAqi(String aqi) {
                this.aqi = aqi;
            }

            public void setHumidity(String humidity) {
                this.humidity = humidity;
            }

            public void setPower(String power) {
                this.power = power;
            }

            public void setInfo(String info) {
                this.info = info;
            }

            public String getWid() {
                return wid;
            }

            public String getTemperature() {
                return temperature;
            }

            public String getDirect() {
                return direct;
            }

            public String getAqi() {
                return aqi;
            }

            public String getHumidity() {
                return humidity;
            }

            public String getPower() {
                return power;
            }

            public String getInfo() {
                return info;
            }
        }

        public class FutureEntity {
            /**
             * date : 2020-09-23
             * wid : {"night":"01","day":"07"}
             * temperature : 17/20℃
             * weather : 小雨转多云
             * direct : 北风
             */
            private String date;
            private WidEntity wid;
            private String temperature;
            private String weather;
            private String direct;

            public void setDate(String date) {
                this.date = date;
            }

            public void setWid(WidEntity wid) {
                this.wid = wid;
            }

            public void setTemperature(String temperature) {
                this.temperature = temperature;
            }

            public void setWeather(String weather) {
                this.weather = weather;
            }

            public void setDirect(String direct) {
                this.direct = direct;
            }

            public String getDate() {
                return date;
            }

            public WidEntity getWid() {
                return wid;
            }

            public String getTemperature() {
                return temperature;
            }

            public String getWeather() {
                return weather;
            }

            public String getDirect() {
                return direct;
            }

            public class WidEntity {
                /**
                 * night : 01
                 * day : 07
                 */
                private String night;
                private String day;

                public void setNight(String night) {
                    this.night = night;
                }

                public void setDay(String day) {
                    this.day = day;
                }

                public String getNight() {
                    return night;
                }

                public String getDay() {
                    return day;
                }
            }
        }
    }
}
